﻿using System;
using Microsoft.Xna.Framework;
using Terraria.Localization;

namespace Terraria.Chat.Commands
{
	// Token: 0x02000494 RID: 1172
	[ChatCommand("Emote")]
	public class EmoteCommand : IChatCommand
	{
		// Token: 0x0600276B RID: 10091 RVA: 0x0001B8FC File Offset: 0x00019AFC
		public void ProcessMessage(string text, byte clientId)
		{
			if (text != "")
			{
				text = string.Format("*{0} {1}", Main.player[(int)clientId].name, text);
				NetMessage.BroadcastChatMessage(NetworkText.FromLiteral(text), EmoteCommand.RESPONSE_COLOR, -1);
			}
		}

		// Token: 0x040043C0 RID: 17344
		private static readonly Color RESPONSE_COLOR = new Color(200, 100, 0);
	}
}
